#Rem
Header:AndyGFX Monkey framework. 
#End

Import mojo

Import agfx_constants
Import agfx_vector_functions
Import agfx_framework
Import agfx_app_timing
Import agfx_console 
Import agfx_screen 
Import agfx_screen_fade
Import agfx_screen_exit
Import agfx_assert 
Import agfx_extension
Import agfx_image
Import agfx_image_container
Import agfx_bbox
Import agfx_entity
Import agfx_pivot
Import agfx_sprite
Import agfx_sound
Import agfx_sound_player
Import agfx_sound_container
Import agfx_unimouse
Import agfx_vector2
Import agfx_dragimage
Import agfx_callback
Import agfx_virtual_display
Import agfx_gui_button
Import agfx_gui_slider
Import agfx_gesture_recorder
Import agfx_bezier
Import agfx_astar_pathfinder
Import agfx_virtual_stick
Import agfx_fontstudio
Import agfx_font_container
Import agfx_tween
Import agfx_sprite_container
Import agfx_music
Import agfx_gesture_grid
Import gui
Import box2d
Import agfx_box2d_wrapper
Import agfx_serialization
Import agfx_xml
Import agfx_collections
Import agfx_resource
Import agfx_property
Import agfx_properties
Import agfx_timer
Import tiled
Import agfx_event_timer
Import agfx_boids
Import agfx_fastlist
Import agfx_particles
Import agfx_touch_control
Import agfx_touch_input
Import agfx.primitives.agfx_primitive
Import agfx.primitives.agfx_point
Import agfx.primitives.agfx_triangle
Import agfx.primitives.agfx_rectangle
Import agfx.primitives.agfx_line
Import agfx.primitives.agfx_circle
Import agfx.primitives.agfx_polygon
Import agfx.primitives.agfx_polyline
Import agfx.primitives.agfx_ngon
Import agfx.primitives.agfx_edge
Import agfx.agfx_collision_math
Import agfx_verlet_point
Import agfx_verlet_link
Import agfx_verlet_group
Import agfx_verlet_world
Import agfx_color
Import agfx_brush
Import agfx_cursor
Import agfx_touch_data
Import agfx_fps_graph
Import agfx_filesystem

' GLOBAL framework instances 
#Rem
summary: define base fade speed for fade between screens
#End
Global fade_speed:Int 			= 30
#Rem
summary: target fps definition for App OnRender() callback
#End
Global TARGET_FPS:Float 			= 60.0
#Rem
summary: global access to virtual screen
#End
Global DISPLAY:TVirtualDisplay  = New TVirtualDisplay() 
#Rem
summary: container for all loaded images
#End
Global IMAGES:TImageContainer 	= New TImageContainer()
#Rem
summary: container for all loaded sounds
#End
Global SOUNDS:TSoundContainer 	= New TSoundContainer()
#Rem
summary: SoundFX manager for sounds from SOUNDS container
#End
Global SFX:TSoundPlayer 		= New TSoundPlayer()
#Rem
summary: global mouse class
#End
Global MOUSE:TUniMouse 			= New TUniMouse()
#Rem
summary: main application framework
#End
Global APP:TFramework 			= New TFramework()
#Rem
summary: container for all loaded fonts
#End
Global FONTS:TFontContainer		= New TFontContainer()
#Rem
summary: container for all created sprites
#End
Global SPRITES:TSpriteContainer = New TSpriteContainer()
#Rem
summary: container for all loaded musics
#End
Global MUSIC:TMusic				= New TMusic()
#Rem
summary: Box2D physics wrapper (not finished yet)
#End
Global BOX2D:TBox2DWrapper		= New TBox2DWrapper()
#Rem
summary: resource loader from used defined XML file
#End
Global RESOURCE:TResource		= New TResource()
#Rem
summary: main DEBUG swithc for show debug information
#End
Global DEBUG:Bool				= False

Global FPSGRAPH:TFpsGraph 		= New TFpsGraph()
#Rem
summary: main DEBUG swithc for show debug information
#End
Global COLLISION:TCollisionMath		= New TCollisionMath()

#Rem
Footer:AndyGFX Monkey framework - END. 
#End